package com.woniuxy.woniuhis.service.impl;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.woniuxy.woniuhis.entity.GodownItem;
import com.woniuxy.woniuhis.entity.OrderCart;
import com.woniuxy.woniuhis.entity.OrderList;
import com.woniuxy.woniuhis.entity.Pharmacy;
import com.woniuxy.woniuhis.entity.Repository;
import com.woniuxy.woniuhis.exception.OrderServiceException;
import com.woniuxy.woniuhis.mapper.GodownItemMapper;
import com.woniuxy.woniuhis.mapper.OrderCartMapper;
import com.woniuxy.woniuhis.mapper.OrderListMapper;
import com.woniuxy.woniuhis.mapper.PharmacyMapper;
import com.woniuxy.woniuhis.service.GodownEntryService;
import com.woniuxy.woniuhis.service.OrderService;
import com.woniuxy.woniuhis.service.RepositoryService;

@Service
public class GodownEntryServiceImpl implements GodownEntryService{
	

	
	@Autowired
	GodownItemMapper godownItemMapper;
	
	/* 
	 * 根据listid来找items
	 */
	
	@Override
	public List<GodownItem> findGodownItemByListId(GodownItem godownItem) {

	try {
		List<GodownItem> entrys = godownItemMapper.selectGodownEntryByListId(godownItem);
		
		return entrys;
	} catch (Exception e) {
		e.printStackTrace();
		System.out.println("findGodownItemByListId异常");
		throw new OrderServiceException("findGodownItemByListId异常");
	}
	
	
	}

	
}
